import 'package:oramemo/generated/json/base/json_convert_content.dart';
import 'package:oramemo/model/inline_object1.dart';

InlineObject1 $InlineObject1FromJson(Map<String, dynamic> json) {
  final InlineObject1 inlineObject1 = InlineObject1();
  final String? deviceSn = jsonConvert.convert<String>(json['deviceSn']);
  if (deviceSn != null) {
    inlineObject1.deviceSn = deviceSn;
  }
  final String? terminalId = jsonConvert.convert<String>(json['terminalId']);
  if (terminalId != null) {
    inlineObject1.terminalId = terminalId;
  }
  return inlineObject1;
}

Map<String, dynamic> $InlineObject1ToJson(InlineObject1 entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['deviceSn'] = entity.deviceSn;
  data['terminalId'] = entity.terminalId;
  return data;
}

extension InlineObject1Extension on InlineObject1 {
  InlineObject1 copyWith({
    String? deviceSn,
    String? terminalId,
  }) {
    return InlineObject1()
      ..deviceSn = deviceSn ?? this.deviceSn
      ..terminalId = terminalId ?? this.terminalId;
  }
}